package com.plian.system.service.pm.ownershipstructure.impl;


import com.plian.system.entity.pm.ownershipstructure.OwnershipStructure;
import com.plian.system.mapper.pm.ownershipstructure.OwnershipStructureMapper;
import com.plian.system.mybatis.base.BaseServiceImpl;
import com.plian.system.mybatis.support.Condition;
import com.plian.system.service.pm.ownershipstructure.IOwnershipStructureService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 进场公开挂牌情况 服务实现类
 *
 */
@Slf4j
@Service
@AllArgsConstructor
public class OwnershipStructureServiceImpl extends BaseServiceImpl<OwnershipStructureMapper, OwnershipStructure> implements IOwnershipStructureService {
    @Override
    public List<OwnershipStructure> ListByParent(String pid){
        return  list(Condition.getQueryWrapper(new OwnershipStructure()).eq("is_deleted",0).eq("investmentup_notice_id",pid));
    }
}
